package com.mipo.client.javase.designerpattern.singleton.hungry;

import java.util.ArrayList;
import java.util.List;

/**
 * 饿汉式单例模式
 * 汉式单例是指在方法调用前，实例就已经创建好了。下面是实现代码：
 * @author kitty
 *
 */
public class HungrySingleton {
	
	private static HungrySingleton instance = new HungrySingleton();
	
	private HungrySingleton(){}
	
	public static HungrySingleton getInstance() {
		List<String> l = new ArrayList<String>();
		java.util.Collections.sort(l);
		
		
		return instance;
	}
	
}
